package com.lihao.sam.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 赵申奥
 * @Description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ScoreEntry {
    private Integer id;
    private String sno;
    private String name;
    private String college;
    private String system;
    private String study;
    private String address;
    private String buildNo;
    private String floorNo;
    private String roomNo;
    private String cause;
    private Integer score;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date ctime;

    public ScoreEntry(String sno, String name, String college, String system, String study, String address, String buildNo, String floorNo, String roomNo, String cause, Integer score) {
        this.sno = sno;
        this.name = name;
        this.college = college;
        this.system = system;
        this.study = study;
        this.address = address;
        this.buildNo = buildNo;
        this.floorNo = floorNo;
        this.roomNo = roomNo;
        this.cause = cause;
        this.score = score;

    }
}
